package com.rabbitmq.demo.listener;

import com.rabbitmq.demo.conf.TopicQueueConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 主题模式消费者1
 *
 * @Author yi.cheng
 * @Date 2023-7-13 13:26
 **/
@Slf4j
@Component
public class TopicQueueConsumer1 {
    @RabbitListener(queues = TopicQueueConfig.TOPIC_QUEUE_ONE)
    public void topicListen1(String msg) {
        log.info("主题模式消费者1 消费了：{}",msg);
    }
}
